package net.gzw1993.runmate.activity;


import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.view.annotation.ViewInject;
import com.lidroid.xutils.view.annotation.event.OnClick;

import net.gzw1993.runmate.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class SetActivity extends BaseActivity {
    @ViewInject(R.id.set_out_btn)
    Button out;
    @ViewInject(R.id.set_tv_about)
    TextView about;
    @ViewInject(R.id.set_tv_bangding)
    TextView bangding;
    @ViewInject(R.id.set_tv_yuepao)
    TextView yuepao;
    @ViewInject(R.id.set_tv_bianji)
    TextView bianji;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_set);
        ViewUtils.inject(this);
    }


    @OnClick({R.id.set_tv_bianji,R.id.set_tv_bangding,R.id.set_tv_about,R.id.set_tv_yuepao,R.id.set_out_btn})
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.set_out_btn:
                Intent intent = new Intent(this,EnterActivity.class);
                startActivity(intent);
                break;
            case R.id.set_tv_bianji:
                Intent intent1 = new Intent(this,MyInfomationActivity.class);
                startActivity(intent1);
                break;
            case R.id.set_tv_bangding:
                Intent intent2 = new Intent(this,BindActivity.class);
                startActivity(intent2);
                break;
            case R.id.set_tv_about:
                Intent intent3 = new Intent(this,AboutRunActivity.class);
                startActivity(intent3);
                break;
            case R.id.set_tv_yuepao:
                Intent intent4 = new Intent(this,YuepaoTipsActivity.class);
                startActivity(intent4);
                break;
        }
    }
}
